<?php

/**
 * Class Core_Filter_Integer
 *
 * @package Core
 */
class Core_Filter_Integer implements Core_Filter_Interface
{
    public $bigInt = false;

    public function __construct($bigInt = false) {
        $this->bigInt = $bigInt;
    }

    public function execute ($data)
    {
        return $this->bigInt ? gmp_strval($data) : intval($data);
    }
}